package com.dc.business.datacollectbusiness.service.impl;

import com.dc.business.datacollectbusiness.entity.HoursDayMounthData;
import com.dc.business.datacollectbusiness.mapper.HoursDayMounthDataMapper;
import com.dc.business.datacollectbusiness.service.HoursDayMounthDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HoursDayMounthDataServiceImpl implements HoursDayMounthDataService {
    @Autowired
    private HoursDayMounthDataMapper hoursDayMounthDataMapper;
    @Override
    public List<HoursDayMounthData> getByHours(String tfcollecterproductcode, int channelno,String startTime,String endTime) {
        return hoursDayMounthDataMapper.findByHours(tfcollecterproductcode, channelno,startTime,endTime);
    }

    @Override
    public List<HoursDayMounthData> getByDays(String tfcollecterproductcode, int channelno,String startTime,String endTime) {
        return hoursDayMounthDataMapper.findByDays(tfcollecterproductcode, channelno,startTime,endTime);
    }

    @Override
    public List<HoursDayMounthData> getByMounth(String tfcollecterproductcode, int channelno,String startTime,String endTime) {
        return hoursDayMounthDataMapper.findByMounth(tfcollecterproductcode, channelno,startTime,endTime);
    }
}
